package com.yuyu.helper;

import com.yuyu.config.ConfigEnum;
import com.yuyu.util.PropsUtil;
import java.util.Properties;

/**
 * 属性文件助手类
 *
 * @author yuyu
 * @date 2018/10/19
 */
public final class ConfigHelper {

    private static final String CONFIG_FILE = "yuyu.properties";

    private static final Properties config_props = PropsUtil.loadProps(CONFIG_FILE);

    public static String getName(ConfigEnum enu) {
        return PropsUtil.getString(config_props, enu.getName());
    }
}
